﻿
namespace Manga.Core
{
    using System;
    using System.Threading.Tasks;
    using Windows.Storage.Streams;
    using Windows.UI.Xaml.Media.Imaging;

    public interface IImageProvider
    {
        bool CanMoveToNextEpisode { get; }
        string NextEpisodeUri { get; }

        bool CanMoveToPrevEpisode { get; }
        string PrevEpisodeUri { get; }
        /// <summary>
        /// 指示是否可以跳转到下一页
        /// </summary>
        bool CanMoveToNext { get; }
        /// <summary>
        /// 指示是否可以跳转到上一页
        /// </summary>
        bool CanMoveToPrev { get; }
        /// <summary>
        /// 指示下一页的URI
        /// </summary>
        string NextUri { get; }
        /// <summary>
        /// 指示上一页的URI
        /// </summary>
        string PrevUri { get; }
        /// <summary>
        /// 指示当前页面的图片源
        /// </summary>
        InMemoryRandomAccessStream ImageSrc { get; }

        Task<bool> Move(string entry);
    }
}
